<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
<title>{{$pageTitle}}-{{$site[title]}}</title>
<meta NAME="ROBOTS" CONTENT="INDEX,FOLLOW">
<meta name="Keywords" content="{{if $seokeywords}}{{$seokeywords}}{{else}}{{$site[seokeywords]}}{{/if}}" />
<meta name="Description" content="{{if $seodescription}}{{$seodescription}}{{else}}{{$site[seodescription]}}{{/if}}" />
<!--[if lt IE 9]>
	{{$this->Html->script(array('html5shiv.js','respond.min.js'))}}
<![endif]-->
{{$this->Html->meta('icon')}}

<?PHP echo $this->Combinator->less(); ?>


{{$this->Html->css(array('font-awesome.min.css',
	'ui-customer','jquery.jgrowl.css'))}}
{{$this->Html->script(array(
            'jquery/jquery.min.js',
            'jquery/jquery.cookie.js',        
            'i18n/language-zh-cn.js',
            'bootstrap.min.js',
            'jquery/jquery.jgrowl.min.js',
            'common.js','front.js',
        ));
}}
<style>
{{template css}}

{{if Configure::read('Page.extracss') }}
	{{Configure::read('Page.extracss')}}
{{/if}}
</style>
<!--[if lte IE 8]>
{{$this->Html->css(array(	
	'bootstrap-ie6.css',
))}}
{{$this->Html->script(array('jquery/jquery-migrate-1.2.1.min.js'))}}
<![endif]-->

<script type="text/javascript">
var BASEURL = "{{APP_SUB_DIR}}";
var ADMIN_BASEURL = BASEURL+"/manage";
</script>
</head>
<body>
{{template Elements/navigation_header}}


<div id="maincontent" class="maincontent clearfix"> 
	<?php
	    $flash_msg =  $this->Session->flash();
	if($flash_msg){
		echo "<div class=\"container\" style=\"margin-top: 20px;\">$flash_msg</div>";
	}
	//注意#maincontent中，只包含一个'.container'，否则无法前台编辑模板可能会走样。多行的使用实现使用<div class="row"></div>。
	?>
  
    {{$content_for_layout}}
</div><!-- //end maincontent -->

{{template Elements/footer}}
